package com.wyzz.hr.util;

import java.math.BigDecimal;
import java.util.Iterator;
import java.util.List;

import com.wyzz.hr.pojo.Employee;
import com.wyzz.hr.pojo.Perfplan;
import com.wyzz.hr.pojo.Perfplanscore;
import com.wyzz.hr.util.reflect.SetObjectProperty;

public class PerfVarDef {

	public PerfVarDef(Employee emp, List ppList) {
		E0 = Double.valueOf(0.0D);
		E1 = Double.valueOf(0.0D);
		E2 = Double.valueOf(0.0D);
		E3 = Double.valueOf(0.0D);
		E4 = Double.valueOf(0.0D);
		E5 = Double.valueOf(0.0D);
		E6 = Double.valueOf(0.0D);
		E7 = Double.valueOf(0.0D);
		E8 = Double.valueOf(0.0D);
		E9 = Double.valueOf(0.0D);
		E10 = Double.valueOf(0.0D);
		E11 = Double.valueOf(0.0D);
		E12 = Double.valueOf(0.0D);
		E13 = Double.valueOf(0.0D);
		E14 = Double.valueOf(0.0D);
		E15 = Double.valueOf(0.0D);
		E16 = Double.valueOf(0.0D);
		E17 = Double.valueOf(0.0D);
		E18 = Double.valueOf(0.0D);
		E19 = Double.valueOf(0.0D);
		E20 = Double.valueOf(0.0D);
		E21 = Double.valueOf(0.0D);
		E22 = Double.valueOf(0.0D);
		E23 = Double.valueOf(0.0D);
		E24 = Double.valueOf(0.0D);
		E25 = Double.valueOf(0.0D);
		E26 = Double.valueOf(0.0D);
		E27 = Double.valueOf(0.0D);
		E28 = Double.valueOf(0.0D);
		E29 = Double.valueOf(0.0D);
		E30 = Double.valueOf(0.0D);
		E31 = Double.valueOf(0.0D);
		E32 = Double.valueOf(0.0D);
		E33 = Double.valueOf(0.0D);
		E34 = Double.valueOf(0.0D);
		E35 = Double.valueOf(0.0D);
		E36 = Double.valueOf(0.0D);
		E37 = Double.valueOf(0.0D);
		E38 = Double.valueOf(0.0D);
		E39 = Double.valueOf(0.0D);
		E40 = Double.valueOf(0.0D);
		E41 = Double.valueOf(0.0D);
		E42 = Double.valueOf(0.0D);
		E43 = Double.valueOf(0.0D);
		E44 = Double.valueOf(0.0D);
		E45 = Double.valueOf(0.0D);
		E46 = Double.valueOf(0.0D);
		E47 = Double.valueOf(0.0D);
		E48 = Double.valueOf(0.0D);
		E49 = Double.valueOf(0.0D);
		E50 = Double.valueOf(0.0D);
		E51 = Double.valueOf(0.0D);
		E52 = Double.valueOf(0.0D);
		E53 = Double.valueOf(0.0D);
		E54 = Double.valueOf(0.0D);
		E55 = Double.valueOf(0.0D);
		E56 = Double.valueOf(0.0D);
		E57 = Double.valueOf(0.0D);
		E58 = Double.valueOf(0.0D);
		E59 = Double.valueOf(0.0D);
		E60 = Double.valueOf(0.0D);
		E61 = Double.valueOf(0.0D);
		E62 = Double.valueOf(0.0D);
		E63 = Double.valueOf(0.0D);
		E64 = Double.valueOf(0.0D);
		E65 = Double.valueOf(0.0D);
		E66 = Double.valueOf(0.0D);
		E67 = Double.valueOf(0.0D);
		E68 = Double.valueOf(0.0D);
		E69 = Double.valueOf(0.0D);
		E70 = Double.valueOf(0.0D);
		E71 = Double.valueOf(0.0D);
		E72 = Double.valueOf(0.0D);
		E73 = Double.valueOf(0.0D);
		E74 = Double.valueOf(0.0D);
		E75 = Double.valueOf(0.0D);
		E76 = Double.valueOf(0.0D);
		E77 = Double.valueOf(0.0D);
		E78 = Double.valueOf(0.0D);
		E79 = Double.valueOf(0.0D);
		E80 = Double.valueOf(0.0D);
		E81 = Double.valueOf(0.0D);
		E82 = Double.valueOf(0.0D);
		E83 = Double.valueOf(0.0D);
		E84 = Double.valueOf(0.0D);
		E85 = Double.valueOf(0.0D);
		E86 = Double.valueOf(0.0D);
		E87 = Double.valueOf(0.0D);
		E88 = Double.valueOf(0.0D);
		E89 = Double.valueOf(0.0D);
		E90 = Double.valueOf(0.0D);
		E91 = Double.valueOf(0.0D);
		E92 = Double.valueOf(0.0D);
		E93 = Double.valueOf(0.0D);
		E94 = Double.valueOf(0.0D);
		E95 = Double.valueOf(0.0D);
		E96 = Double.valueOf(0.0D);
		E97 = Double.valueOf(0.0D);
		E98 = Double.valueOf(0.0D);
		E99 = Double.valueOf(0.0D);
		E100 = Double.valueOf(0.0D);
		E200 = Double.valueOf(0.0D);
		E300 = Double.valueOf(0.0D);
		E400 = Double.valueOf(0.0D);
		E500 = Double.valueOf(0.0D);
		if (emp == null || ppList == null || ppList.isEmpty())
			return;
		Iterator i$ = ppList.iterator();
		do {
			if (!i$.hasNext())
				break;
			Perfplan pp = (Perfplan) i$.next();
			switch (Integer.parseInt(pp.getPpPppId().getPppClass())) {
			case 1: // '\001'
				E0 = getDoubleValue(pp.getPpScore());
				if (pp.getPlanScoreList() != null
						&& pp.getPlanScoreList().size() != 0) {
					int i = 0;
					while (i < pp.getPlanScoreList().size()) {
						Perfplanscore pps = (Perfplanscore) pp
								.getPlanScoreList().get(i);
						try {
							SetObjectProperty.setObjectProperty(this,
									(new StringBuilder()).append("E").append(
											pps.getPpsDataSeq()).append(".")
											.toString(), getDoubleValue(pps
											.getPpsScore()));
						} catch (Exception e) {
							e.printStackTrace();
						}
						i++;
					}
				}
				break;

			case 2: // '\002'
				E100 = getDoubleValue(pp.getPpScore());
				break;

			case 3: // '\003'
				E200 = getDoubleValue(pp.getPpScore());
				break;

			case 4: // '\004'
				E300 = getDoubleValue(pp.getPpScore());
				break;

			case 5: // '\005'
				E400 = getDoubleValue(pp.getPpScore());
				break;

			default:
				E500 = getDoubleValue(pp.getPpScore());
				break;
			}
		} while (true);
	}

	private Double getDoubleValue(BigDecimal bigDecimal) {
		if (bigDecimal == null)
			return Double.valueOf(0.0D);
		else
			return Double.valueOf(bigDecimal.doubleValue());
	}

	public Double getE0() {
		return E0;
	}

	public void setE0(Double e0) {
		E0 = e0;
	}

	public Double getE1() {
		return E1;
	}

	public void setE1(Double e1) {
		E1 = e1;
	}

	public Double getE2() {
		return E2;
	}

	public void setE2(Double e2) {
		E2 = e2;
	}

	public Double getE3() {
		return E3;
	}

	public void setE3(Double e3) {
		E3 = e3;
	}

	public Double getE4() {
		return E4;
	}

	public void setE4(Double e4) {
		E4 = e4;
	}

	public Double getE5() {
		return E5;
	}

	public void setE5(Double e5) {
		E5 = e5;
	}

	public Double getE6() {
		return E6;
	}

	public void setE6(Double e6) {
		E6 = e6;
	}

	public Double getE7() {
		return E7;
	}

	public void setE7(Double e7) {
		E7 = e7;
	}

	public Double getE8() {
		return E8;
	}

	public void setE8(Double e8) {
		E8 = e8;
	}

	public Double getE9() {
		return E9;
	}

	public void setE9(Double e9) {
		E9 = e9;
	}

	public Double getE10() {
		return E10;
	}

	public void setE10(Double e10) {
		E10 = e10;
	}

	public Double getE11() {
		return E11;
	}

	public void setE11(Double e11) {
		E11 = e11;
	}

	public Double getE12() {
		return E12;
	}

	public void setE12(Double e12) {
		E12 = e12;
	}

	public Double getE13() {
		return E13;
	}

	public void setE13(Double e13) {
		E13 = e13;
	}

	public Double getE14() {
		return E14;
	}

	public void setE14(Double e14) {
		E14 = e14;
	}

	public Double getE15() {
		return E15;
	}

	public void setE15(Double e15) {
		E15 = e15;
	}

	public Double getE16() {
		return E16;
	}

	public void setE16(Double e16) {
		E16 = e16;
	}

	public Double getE17() {
		return E17;
	}

	public void setE17(Double e17) {
		E17 = e17;
	}

	public Double getE18() {
		return E18;
	}

	public void setE18(Double e18) {
		E18 = e18;
	}

	public Double getE19() {
		return E19;
	}

	public void setE19(Double e19) {
		E19 = e19;
	}

	public Double getE20() {
		return E20;
	}

	public void setE20(Double e20) {
		E20 = e20;
	}

	public Double getE21() {
		return E21;
	}

	public void setE21(Double e21) {
		E21 = e21;
	}

	public Double getE22() {
		return E22;
	}

	public void setE22(Double e22) {
		E22 = e22;
	}

	public Double getE23() {
		return E23;
	}

	public void setE23(Double e23) {
		E23 = e23;
	}

	public Double getE24() {
		return E24;
	}

	public void setE24(Double e24) {
		E24 = e24;
	}

	public Double getE25() {
		return E25;
	}

	public void setE25(Double e25) {
		E25 = e25;
	}

	public Double getE26() {
		return E26;
	}

	public void setE26(Double e26) {
		E26 = e26;
	}

	public Double getE27() {
		return E27;
	}

	public void setE27(Double e27) {
		E27 = e27;
	}

	public Double getE28() {
		return E28;
	}

	public void setE28(Double e28) {
		E28 = e28;
	}

	public Double getE29() {
		return E29;
	}

	public void setE29(Double e29) {
		E29 = e29;
	}

	public Double getE30() {
		return E30;
	}

	public void setE30(Double e30) {
		E30 = e30;
	}

	public Double getE31() {
		return E31;
	}

	public void setE31(Double e31) {
		E31 = e31;
	}

	public Double getE32() {
		return E32;
	}

	public void setE32(Double e32) {
		E32 = e32;
	}

	public Double getE33() {
		return E33;
	}

	public void setE33(Double e33) {
		E33 = e33;
	}

	public Double getE34() {
		return E34;
	}

	public void setE34(Double e34) {
		E34 = e34;
	}

	public Double getE35() {
		return E35;
	}

	public void setE35(Double e35) {
		E35 = e35;
	}

	public Double getE36() {
		return E36;
	}

	public void setE36(Double e36) {
		E36 = e36;
	}

	public Double getE37() {
		return E37;
	}

	public void setE37(Double e37) {
		E37 = e37;
	}

	public Double getE38() {
		return E38;
	}

	public void setE38(Double e38) {
		E38 = e38;
	}

	public Double getE39() {
		return E39;
	}

	public void setE39(Double e39) {
		E39 = e39;
	}

	public Double getE40() {
		return E40;
	}

	public void setE40(Double e40) {
		E40 = e40;
	}

	public Double getE41() {
		return E41;
	}

	public void setE41(Double e41) {
		E41 = e41;
	}

	public Double getE42() {
		return E42;
	}

	public void setE42(Double e42) {
		E42 = e42;
	}

	public Double getE43() {
		return E43;
	}

	public void setE43(Double e43) {
		E43 = e43;
	}

	public Double getE44() {
		return E44;
	}

	public void setE44(Double e44) {
		E44 = e44;
	}

	public Double getE45() {
		return E45;
	}

	public void setE45(Double e45) {
		E45 = e45;
	}

	public Double getE46() {
		return E46;
	}

	public void setE46(Double e46) {
		E46 = e46;
	}

	public Double getE47() {
		return E47;
	}

	public void setE47(Double e47) {
		E47 = e47;
	}

	public Double getE48() {
		return E48;
	}

	public void setE48(Double e48) {
		E48 = e48;
	}

	public Double getE49() {
		return E49;
	}

	public void setE49(Double e49) {
		E49 = e49;
	}

	public Double getE50() {
		return E50;
	}

	public void setE50(Double e50) {
		E50 = e50;
	}

	public Double getE51() {
		return E51;
	}

	public void setE51(Double e51) {
		E51 = e51;
	}

	public Double getE52() {
		return E52;
	}

	public void setE52(Double e52) {
		E52 = e52;
	}

	public Double getE53() {
		return E53;
	}

	public void setE53(Double e53) {
		E53 = e53;
	}

	public Double getE54() {
		return E54;
	}

	public void setE54(Double e54) {
		E54 = e54;
	}

	public Double getE55() {
		return E55;
	}

	public void setE55(Double e55) {
		E55 = e55;
	}

	public Double getE56() {
		return E56;
	}

	public void setE56(Double e56) {
		E56 = e56;
	}

	public Double getE57() {
		return E57;
	}

	public void setE57(Double e57) {
		E57 = e57;
	}

	public Double getE58() {
		return E58;
	}

	public void setE58(Double e58) {
		E58 = e58;
	}

	public Double getE59() {
		return E59;
	}

	public void setE59(Double e59) {
		E59 = e59;
	}

	public Double getE60() {
		return E60;
	}

	public void setE60(Double e60) {
		E60 = e60;
	}

	public Double getE61() {
		return E61;
	}

	public void setE61(Double e61) {
		E61 = e61;
	}

	public Double getE62() {
		return E62;
	}

	public void setE62(Double e62) {
		E62 = e62;
	}

	public Double getE63() {
		return E63;
	}

	public void setE63(Double e63) {
		E63 = e63;
	}

	public Double getE64() {
		return E64;
	}

	public void setE64(Double e64) {
		E64 = e64;
	}

	public Double getE65() {
		return E65;
	}

	public void setE65(Double e65) {
		E65 = e65;
	}

	public Double getE66() {
		return E66;
	}

	public void setE66(Double e66) {
		E66 = e66;
	}

	public Double getE67() {
		return E67;
	}

	public void setE67(Double e67) {
		E67 = e67;
	}

	public Double getE68() {
		return E68;
	}

	public void setE68(Double e68) {
		E68 = e68;
	}

	public Double getE69() {
		return E69;
	}

	public void setE69(Double e69) {
		E69 = e69;
	}

	public Double getE70() {
		return E70;
	}

	public void setE70(Double e70) {
		E70 = e70;
	}

	public Double getE71() {
		return E71;
	}

	public void setE71(Double e71) {
		E71 = e71;
	}

	public Double getE72() {
		return E72;
	}

	public void setE72(Double e72) {
		E72 = e72;
	}

	public Double getE73() {
		return E73;
	}

	public void setE73(Double e73) {
		E73 = e73;
	}

	public Double getE74() {
		return E74;
	}

	public void setE74(Double e74) {
		E74 = e74;
	}

	public Double getE75() {
		return E75;
	}

	public void setE75(Double e75) {
		E75 = e75;
	}

	public Double getE76() {
		return E76;
	}

	public void setE76(Double e76) {
		E76 = e76;
	}

	public Double getE77() {
		return E77;
	}

	public void setE77(Double e77) {
		E77 = e77;
	}

	public Double getE78() {
		return E78;
	}

	public void setE78(Double e78) {
		E78 = e78;
	}

	public Double getE79() {
		return E79;
	}

	public void setE79(Double e79) {
		E79 = e79;
	}

	public Double getE80() {
		return E80;
	}

	public void setE80(Double e80) {
		E80 = e80;
	}

	public Double getE81() {
		return E81;
	}

	public void setE81(Double e81) {
		E81 = e81;
	}

	public Double getE82() {
		return E82;
	}

	public void setE82(Double e82) {
		E82 = e82;
	}

	public Double getE83() {
		return E83;
	}

	public void setE83(Double e83) {
		E83 = e83;
	}

	public Double getE84() {
		return E84;
	}

	public void setE84(Double e84) {
		E84 = e84;
	}

	public Double getE85() {
		return E85;
	}

	public void setE85(Double e85) {
		E85 = e85;
	}

	public Double getE86() {
		return E86;
	}

	public void setE86(Double e86) {
		E86 = e86;
	}

	public Double getE87() {
		return E87;
	}

	public void setE87(Double e87) {
		E87 = e87;
	}

	public Double getE88() {
		return E88;
	}

	public void setE88(Double e88) {
		E88 = e88;
	}

	public Double getE89() {
		return E89;
	}

	public void setE89(Double e89) {
		E89 = e89;
	}

	public Double getE90() {
		return E90;
	}

	public void setE90(Double e90) {
		E90 = e90;
	}

	public Double getE91() {
		return E91;
	}

	public void setE91(Double e91) {
		E91 = e91;
	}

	public Double getE92() {
		return E92;
	}

	public void setE92(Double e92) {
		E92 = e92;
	}

	public Double getE93() {
		return E93;
	}

	public void setE93(Double e93) {
		E93 = e93;
	}

	public Double getE94() {
		return E94;
	}

	public void setE94(Double e94) {
		E94 = e94;
	}

	public Double getE95() {
		return E95;
	}

	public void setE95(Double e95) {
		E95 = e95;
	}

	public Double getE96() {
		return E96;
	}

	public void setE96(Double e96) {
		E96 = e96;
	}

	public Double getE97() {
		return E97;
	}

	public void setE97(Double e97) {
		E97 = e97;
	}

	public Double getE98() {
		return E98;
	}

	public void setE98(Double e98) {
		E98 = e98;
	}

	public Double getE99() {
		return E99;
	}

	public void setE99(Double e99) {
		E99 = e99;
	}

	public Double getE100() {
		return E100;
	}

	public void setE100(Double e100) {
		E100 = e100;
	}

	public Double getE200() {
		return E200;
	}

	public void setE200(Double e200) {
		E200 = e200;
	}

	public Double getE300() {
		return E300;
	}

	public void setE300(Double e300) {
		E300 = e300;
	}

	public Double getE400() {
		return E400;
	}

	public void setE400(Double e400) {
		E400 = e400;
	}

	public Double getE500() {
		return E500;
	}

	public void setE500(Double e500) {
		E500 = e500;
	}

	private Double E0;
	private Double E1;
	private Double E2;
	private Double E3;
	private Double E4;
	private Double E5;
	private Double E6;
	private Double E7;
	private Double E8;
	private Double E9;
	private Double E10;
	private Double E11;
	private Double E12;
	private Double E13;
	private Double E14;
	private Double E15;
	private Double E16;
	private Double E17;
	private Double E18;
	private Double E19;
	private Double E20;
	private Double E21;
	private Double E22;
	private Double E23;
	private Double E24;
	private Double E25;
	private Double E26;
	private Double E27;
	private Double E28;
	private Double E29;
	private Double E30;
	private Double E31;
	private Double E32;
	private Double E33;
	private Double E34;
	private Double E35;
	private Double E36;
	private Double E37;
	private Double E38;
	private Double E39;
	private Double E40;
	private Double E41;
	private Double E42;
	private Double E43;
	private Double E44;
	private Double E45;
	private Double E46;
	private Double E47;
	private Double E48;
	private Double E49;
	private Double E50;
	private Double E51;
	private Double E52;
	private Double E53;
	private Double E54;
	private Double E55;
	private Double E56;
	private Double E57;
	private Double E58;
	private Double E59;
	private Double E60;
	private Double E61;
	private Double E62;
	private Double E63;
	private Double E64;
	private Double E65;
	private Double E66;
	private Double E67;
	private Double E68;
	private Double E69;
	private Double E70;
	private Double E71;
	private Double E72;
	private Double E73;
	private Double E74;
	private Double E75;
	private Double E76;
	private Double E77;
	private Double E78;
	private Double E79;
	private Double E80;
	private Double E81;
	private Double E82;
	private Double E83;
	private Double E84;
	private Double E85;
	private Double E86;
	private Double E87;
	private Double E88;
	private Double E89;
	private Double E90;
	private Double E91;
	private Double E92;
	private Double E93;
	private Double E94;
	private Double E95;
	private Double E96;
	private Double E97;
	private Double E98;
	private Double E99;
	private Double E100;
	private Double E200;
	private Double E300;
	private Double E400;
	private Double E500;
}
